import { Entity, Column, PrimaryGeneratedColumn, OneToMany } from 'typeorm';
import { User } from 'src/modules/user/entities/user.entity';
@Entity()
export class Role {
  @PrimaryGeneratedColumn()
  id: string;
  @Column()
  type: number;
  @OneToMany(() => User, (user) => user.role)
  user: User[];
  @Column({ type: 'longtext' })
  func: string;
}
